//
//  NSCharacterSet+Addition.m
//  Project
//
//  Created by  CarlsonLee on 2018/12/7.
//  Copyright © 2018年 YANJING. All rights reserved.
//

#import "NSCharacterSet+Addition.h"
#import "NSString+Emoji.h"

@implementation NSCharacterSet (Addition)

+ (NSCharacterSet *)gel_emojiCharacterSet {
    static NSCharacterSet *set = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        set = [NSCharacterSet characterSetWithCharactersInString:[NSString gel_allEmoji]];
    });
    return set;
}

@end

@implementation NSMutableCharacterSet (Addition)

+ (NSMutableCharacterSet *)gel_emojiCharacterSet {
    static NSMutableCharacterSet *set = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        set = [NSCharacterSet gel_emojiCharacterSet].mutableCopy;
    });
    return set;
}
@end
